package composite.collegeDisplay;

import composite.collegeDisplay.component.College;
import composite.collegeDisplay.component.Department;
import composite.collegeDisplay.component.University;
import composite.collegeDisplay.component.base.OrganizationComponent;

public class Client {

    public static void main(String[] args) {

        OrganizationComponent university = new University("Tsinghua", "Top");

        OrganizationComponent computer = new College("Computer", "com");
        OrganizationComponent info = new College("Infomation", "info");

        computer.add(new Department("SE","SE"));
        computer.add(new Department("CS","CS"));

        info.add(new Department("Elec","Elec"));

        university.add(computer);
        university.add(info);

        university.print();
    }

}
